//
//  YAYIMsgDetailController.m
//  yayi
//
//  Created by hxp on 16/6/16.
//  Copyright © 2016年 hxp. All rights reserved.
//

#import "YAYIMsgDetailController.h"

@interface YAYIMsgDetailController ()<UIWebViewDelegate>

@property (strong,nonatomic)UIWebView *webView;

@end

@implementation YAYIMsgDetailController

- (void)viewDidLoad {
    
    [super viewDidLoad];
    
    self.title = @"消息详情";
    [self createWebView];
}


-(void)createWebView{
    self.webView = [[UIWebView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_width, SCREEN_height)];
    self.webView.delegate = self;
    [self.view addSubview:self.webView];
    NSURL *url = [NSURL URLWithString:@""];
    NSURLRequest *request = [[NSURLRequest alloc] initWithURL:url cachePolicy:NSURLRequestUseProtocolCachePolicy timeoutInterval:3.0f];
    [self.webView loadRequest:request];
}

-(BOOL)webView:(UIWebView *)webView shouldStartLoadWithRequest:(NSURLRequest *)request navigationType:(UIWebViewNavigationType)navigationType
{
    return YES;
}


-(void)backAction:(UIButton *)sender
{
    //    [self dismissViewControllerAnimated:NO completion:nil];
    [self.navigationController popViewControllerAnimated:YES];
}


@end
